/* fmStart.java 
* Created on Jan 14, 2013 
* Author:Mr.Viet
* Phone: 01683430426
* Email: phamvanvietcdhd@gmail.com
*/ 
package ServerAdmin; 

import java.awt.Dimension;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;

import net.miginfocom.swing.MigLayout;

public class fmStart extends JPanel{
	private JLabel lbl1,lbl2;
	private JList list;
	private JButton btnStart,btnStop;
	public fmStart() {
		this.setLayout(new MigLayout());
		this.lbl1 = new JLabel("START/STOP SERVER");
		this.lbl2 = new JLabel("Desciption...");
		
		this.list = new JList<>();
		
		this.btnStart = new JButton("Start");
		this.btnStop = new JButton("Stop");
		
		this.add(this.lbl1,"center");
		this.add(new JLabel(""),"wrap");
		this.add(this.list,"wrap");
		//Dinh Dang kick co cua ca nut
		this.list.setMinimumSize(new Dimension(700,400));
		this.btnStart.setMinimumSize(new Dimension(100,50));
		this.btnStop.setMinimumSize(new Dimension(100,50));
		
		JPanel p = new JPanel();
		p.setLayout(new MigLayout());
		p.add(this.btnStart,"cell 2 0");
		p.add(this.btnStop, "cell 4 0");
		
		this.add(p,"center");
		this.add(this.lbl2,"right");
//		
	}
}
